import apiUrl from '../base'
import axios from '@/libs/axios'
const projectInfo = {
  // 添加项目信息
  addProjectInfo(prames) {
    return axios.post(`${apiUrl.base}v1/Project/add`, prames)
  },
  // 修改项目信息
  editProjectInfo(prames) {
    return axios.post(`${apiUrl.base}v1/Project/edit`, prames)
  },
  //查看项目详情
  getProjectInfoDetail(id) {
    return axios.get(`${apiUrl.base}v1/Project/detail/${id}`, '')
  },
  //删除项目
  delProjectInfo(id) {
    return axios.delete(`${apiUrl.base}v1/Project/delete/${id}`, '')
  },
  //获取组织机构-用于中标单位和管理单位
  getTreeEnterprise(){
    return axios.post(`${apiUrl.base}v1/OrgTree/tree/onlyEnterpriseFromTop`,'')
  },
}
export default projectInfo
